<template>
	<view class="product-detail" :data-theme="theme()" :class="theme() || ''">
		<scroll-view scroll-y="true" class="scroll-Y" :style="'height:' + scrollviewHigh + 'px;'" v-if="!loadding">
			<!--{{$t('plus.image')}}-->
			<view class="product-pic">
				<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
					:duration="duration">
					<swiper-item v-for="(item, index) in detail.image" :key="index">
						<image :src="item.filePath" mode="aspectFit"></image>
					</swiper-item>
				</swiper>
			</view>

			<!--{{$t('plus.limited_time_group_buy')}}-->
			<view class="limited-spike d-b-c m-0-20 mt20">
				<text class="left-name">{{ $t('plus.limited_time_group_buy') }}</text>
				<view class="right">
					<Countdown ref="countdown" :config="countdownConfig" @returnVal="returnValFunc"></Countdown>
				</view>
			</view>

			<!--{{$t('plus.basic_info')}}-->
			<view class="bg-white m-0-20 mb20 p30 bottom-radius">
				<view class="price-wrap">
					<view class="left">
						<view class="new-price theme-price">
							<text class="f24">HK$</text>
							<text class="num">{{ detail.assemblePrice }}</text>
						</view>
						<text class="old-price" v-if="detail.linePrice > 0">{{ "HK$" + detail.linePrice }}</text>
						<!--{{$t('plus.share')}}-->
					</view>
					<!-- <view class="share-box">
						<button @click="showShare" open-type="share">
							<image class="share_img" src="/static/icon/fenxiang.png" mode=""></image>
						</button>
					</view> -->
					<text class="already-sale">{{ $t('plus.sold', { place1: detail.productSales || 0 }) }}</text>
				</view>
				<view class="product-name">{{ detail.product.productName }}</view>
				<view class="product-describe" v-if="detail.product.sellingPoint">{{ detail.product.sellingPoint }}
				</view>
			</view>
			<view class="m20 br12 o-h p-0-30 bg-white">
				<!--{{$t('plus.selected0')}}-->
				<view class="already-choice" :class="detail.server != '' ? 'border-b-d9' : ''"
					v-if="detail.specType == 20" @click="openPopup('order')">
					<view class="group-hd">
						<view class="left"><text class="min-name gray9">{{ $t('plus.selection') }}</text></view>
						<view class="flex-1 p-0-20 center-content f28 text-ellipsis o-h">{{
							alreadyChioce
						}}</view>
						<view class="right"><text class="icon iconfont icon-jiantou"
								style="font-size: 22rpx; color: #999"></text></view>
					</view>
				</view>
				<!-- 保障 -->
				<view class="already-choice" @click="showGuarantee" v-if="detail.server != ''">
					<view class="group-hd">
						<view class="left"><text class="min-name gray9">{{ $t('plus.service') }}</text></view>
						<view class="flex-1 p-0-20 center-content f28 text-ellipsis o-h">{{
							serverList
						}}</view>
						<view class="right"><text class="icon iconfont icon-jiantou"
								style="font-size: 22rpx; color: #999"></text></view>
					</view>
				</view>
			</view>
			<!--{{$t('plus.group_buy_user')}}-->
			<Bill :bill="bill" @openMore="openMoreFunc" @gobill="gobillFunc"></Bill>
			<!-- 商户信息 -->
			<view class="shop_head_info" v-if="store_open && shop_info">
				<view class="shop_list_body_item_shop">
					<view class="shop_list_body_item_shop_logo">
						<image :src="shop_info.logoFilePath" mode=""></image>
					</view>
					<view class="shop_list_body_item_shop_info flex-1">
						<view class="f32 title fb">{{ shop_info.name }}</view>
						<view class="f26 brand gray9">{{ $t('plus.main_brand') }} {{ shop_info.categoryName }}</view>
						<view class="f26 sales gray9">{{ $t('plus.sales') }}{{ shop_info.productSales
							}}{{ $t('plus.items') }}</view>
					</view>
					<view class="shop-tobtn">
						<view class="f26 collect">
							{{ $t('plus.merchant_rating') }}
							<text class="fb redF6">{{ shop_info.serverScore }}</text>
						</view>
						<button class="theme-borderbtn" @click="goto_shop()">
							{{ $t('plus.visit_store') }}
						</button>
					</view>
				</view>
			</view>
			<!--{{$t('plus.details')}}-->
			<view class="product-content">
				<view class="group-hd border-b-e">
					<view class="d-s-c">
						<view class="pro_nameline"></view><text
							class="min-name f32 fb">{{ $t('plus.product_intro') }}</text>
					</view>
				</view>
				<view v-if="detail.isPicture == 0" class="content-box" v-html="detail.content"></view>
				<view v-if="detail.isPicture == 1" class="content-box">
					<view class="ww100" v-for="(item, index) in detail.contentImage" :key="index">
						<image class="ww100" :src="item.filePath" mode="widthFix"></image>
					</view>
				</view>
			</view>
		</scroll-view>

		<!--{{$t('plus.bottom_button')}}-->
		<view class="btns-wrap d-s-c d-stretch">
			<template v-if="!loadding">
				<view class="customer-service d-c-c">
					<view class="icon-box d-c-c" @click="gotoPage('/pages/index/index')">
						<button class="d-c-c d-c bg-white">
							<text class="btn_btom pr icon iconfont icon-shouye gray3"
								style="height: 50rpx; line-height: 60rpx"></text>
							<text class="f22 gray3" style="height: 50rpx; line-height: 40rpx">{{ $t('plus.home') }}</text>
						</button>
					</view>
					<view class="icon-box d-c-c" @click="openMaservice">
						<button class="d-c-c d-c bg-white">
							<text class="icon iconfont icon-kefu gray9"
								style="font-size: 36rpx; height: 50rpx; line-height: 60rpx"></text>
							<text class="f22 gray9"
								style="height: 50rpx; line-height: 40rpx">{{ $t('plus.customer_service') }}</text>
						</button>
					</view>
				</view>
				<view class="buy-alone flex-1 d-c-c d-c" @click="gotoProducntDetail()">
					<text>HK${{ detail.productPrice }}</text>
					<button type="primary">{{ $t('plus.buy_separately') }}</button>
				</view>
				<view class="make-group flex-1 d-c-c d-c" @click="openPopup('order')">
					<text>HK${{ detail.assemblePrice }}</text>
					<button type="primary">{{ $t('plus.immediate_group_buy') }}</button>
				</view>
			</template>
		</view>

		<!--{{$t('plus.confirm_purchase')}}-->
		<spec :isPopup="isPopup" :productModel="productModel" @close="closePopup"></spec>

		<!--{{$t('plus.bottom_popup')}}-->
		<share :isMpShare="isMpShare" @close="closeBottmpanel"></share>
		<!--{{$t('plus.app_share')}}-->
		<AppShare :isAppShare="isAppShare" :appParams="appParams" @close="closeAppShare"></AppShare>
		<!--{{$t('plus.customer_service')}}-->
		<Mpservice v-if="isMpservice" :shopSupplierId="detail.shopSupplierId" :isMpservice="isMpservice"
			@close="closeMpservice"></Mpservice>
		<guarantee :isguarantee="isguarantee" :server="detail.server" @close="closeGuarantee"></guarantee>
		<!--{{$t('plus.more_users')}}-->
		<MoreBill v-if="ismore" :bill="bill" :ismore="true" @closeMore="openMoreFunc" @gobill="gobillFunc"></MoreBill>
	</view>
</template>

<script>
import Countdown from "@/components/countdown/countdown.vue";
import Mpservice from "@/components/mpservice/Mpservice.vue";
import MoreBill from "./popup/MoreBill.vue";
import Spec from "./popup/Spec.vue";
import Bill from "./part/Bill.vue";
import utils from "@/common/utils.js";
import share from "@/components/mp-share.vue";
import AppShare from "@/components/app-share.vue";
import guarantee from "@/components/guarantee.vue";
export default {
	components: {
		Spec,
		Countdown,
		Mpservice,
		Bill,
		MoreBill,
		share,
		AppShare,
		guarantee,
	},
	data() {
		return {
			from_type: 10,
			/*手机高度*/
			phoneHeight: 0,
			/*可滚动视图区域高度*/
			scrollviewHigh: 0,
			/*是否加载完成*/
			loadding: true,
			/*是否显示面板指示点*/
			indicatorDots: true,
			/*是否知道切换*/
			autoplay: true,
			/*自动切换时间间隔*/
			interval: 2000,
			/*滑动动画时长*/
			duration: 500,
			/*商品id*/
			product_id: null,
			/*产品图片展示*/
			imagList: [],
			/*活动详情*/
			activeDetail: {},
			serverList: "", //保障
			/*详情*/
			detail: {
				product_sku: {},
				showSku: {
					assemblePrice: "",
					productSkuId: 0,
					linePrice: "",
					stockNum: 0,
					skuImage: "",
					assembleProductSkuId: 0,
				},
				showPointSku: {},
			},
			/*已购买用户*/
			bill: [],
			/*是否确定购买弹窗*/
			isPopup: false,
			/*商品属性*/
			specData: null,
			/*子级页面传参*/
			productModel: {},
			/*拼团商品ID*/
			assembleProductId: 0,
			/*倒计时配置*/
			countdownConfig: {
				/*开始时间*/
				startstamp: 0,
				/*结束时间*/
				endstamp: 0,
			},
			/*是否打开客服*/
			isMpservice: false,
			/*是否打开更多*/
			ismore: false,
			/*拼团ID*/
			assemble_bill_id: null,
			/*当前用户id*/
			userId: null,
			/*商品规格*/
			productSku: [],
			/*分享*/
			isMpShare: false,
			/*app分享*/
			isAppShare: false,
			appParams: {
				title: "",
				summary: "",
				path: "",
			},
			url: "",
			shop_info: {},
			serviceUser: null,
			serviceType: null,
			store_open: 1,
			alreadyChioce: "",
			isguarantee: false,
		};
	},
	onLoad(e) {
		this.userId = this.getUserId();
		/*拼团商品ID*/
		this.assembleProductId = e.assembleProductId;
		/*拼团组ID*/
		this.assembleBillId = e.assembleBillId;
		// 公众号分享
		if (this.getPlatform() == "mp") {
			this.url = window.location.href;
		}
	},
	onShow() {
		uni.setNavigationBarTitle({
			title: this.$t('common.group_details')
		})
	},
	mounted() {
		this.init();

		/*获取产品详情*/
		this.getData();
	},
	onHide() { },
	methods: {
		goto_shop() {
			let self = this;
			self.gotoPage(
				"/pages/shop/shop?shopSupplierId=" + self.detail.supplier.shopSupplierId
			);
		},
		closeGuarantee() {
			this.isguarantee = false;
		},
		showGuarantee() {
			this.isguarantee = true;
		},
		getServer() {
			let self = this;
			let serverList = [];
			if (self.detail.server) {
				self.detail.server.forEach((item, index) => {
					serverList.push(item.name);
				});
				self.serverList = serverList.join("·");
			}
		},
		/*初始化*/
		init() {
			let _this = this;
			uni.getSystemInfo({
				success(res) {
					_this.phoneHeight = res.windowHeight;
					// 计算组件的高度
					let view = uni.createSelectorQuery().select(".btns-wrap");
					view
						.boundingClientRect((data) => {
							let h = _this.phoneHeight - data.height;
							_this.scrollviewHigh = h;
						})
						.exec();
				},
			});
		},

		/*获取数据*/
		getData() {
			let self = this;
			uni.showLoading({
				title: this.$t('plus.loading'),
			});
			self.loadding = true;
			self._get(
				"plus/assemble/product/detail", {
				assembleProductId: self.assembleProductId,
				url: self.url,
			},
				function (res) {
					if (res.data.mpService == null) {
						self.serviceType = 10;
					} else {
						self.serviceType = res.data.serviceType;
					}
					self.countdownConfig.startstamp = res.data.active.startTime;
					self.countdownConfig.endstamp = res.data.active.endTime;
					self.activeDetail = res.data.active;
					self.serviceUser = res.data.serviceUser;
					self.serviceType = res.data.serviceType;
					/*详情内容格式化*/
					res.data.detail.content = utils.format_content(
						res.data.detail.content
					);

					/*初始化商品多规格*/
					if (res.data.detail.specType == 20) {
						self.initSpecData(res.data.detail.assembleSku, res.data.specData);
					}
					//#ifdef MP-WEIXIN
					self.store_open = res.data.storeOpen;
					//#endif
					self.detail = res.data.detail;
					self.shop_info = res.data.detail.supplier;
					self.bill = res.data.bill;
					self.getServer();
					// 配置微信分享参数
					if (self.getPlatform() == "mp") {
						let params = {
							assembleProductId: self.assembleProductId,
						};
						self.configWx(
							res.data.share.signPackage,
							res.data.share.shareParams,
							params
						);
					}
					self.loadding = false;
					uni.hideLoading();
				}
			);
		},

		/*多规格商品*/
		initSpecData(list, data) {
			for (let i = 0; i < list.length; i++) {
				let item = list[i];
				if (item.productSku) {
					let arr = item.productSku.specSkuId.split("_").map(Number);
					this.productSku.push(arr);
				}
			}
			for (let i in data.specAttr) {
				for (let j = 0; j < data.specAttr[i].specItems.length; j++) {
					let item = data.specAttr[i].specItems[j];
					if (this.hasSpec(item.itemId, i)) {
						item.checked = false;
						item.disabled = false;
					} else {
						data.specAttr[i].specItems.splice(j, 1);
						j--;
					}
				}
			}
			this.specData = data;
			if (this.specData.specAttr) {
				this.specData.specAttr.forEach((item) => {
					this.alreadyChioce += item.groupName;
					this.alreadyChioce += " / ";
				});
				this.alreadyChioce = this.alreadyChioce.replace(/(\s\/\s)$/gi, "");
			}
		},

		/*判断有没有规格*/
		hasSpec(id, _index) {
			let flag = false;
			for (let i = 0; i < this.productSku.length; i++) {
				let arr = this.productSku[i];
				if (arr[_index] == id) {
					flag = true;
					break;
				}
			}
			return flag;
		},

		/*打开窗口*/
		openPopup(e) {
			/*是否单团，0不，1是*/
			if (
				(this.activeDetail.isSingle == 1 &&
					e == "order" &&
					this.bill.length == 0) ||
				(this.activeDetail.isSingle == 0 && e == "order") ||
				e != "order"
			) {
				if (e == "order" && this.assembleBillId == null) {
					this.assembleBillId = 0;
				}
				let obj = {
					specData: this.specData,
					detail: this.detail,
					productSpecArr: this.specData != null ?
						new Array(this.specData.specAttr.length) : [],
					showSku: {
						skuImage: "",
						assemblePrice: 0,
						productSkuId: 0,
						linePrice: 0,
						assembleStock: 0,
						assembleProductSkuId: 0,
						assembleBillId: this.assembleBillId,
						sum: 1,
					},
					productSku: this.productSku,
					type: e,
				};
				this.productModel = obj;
				this.isPopup = true;
			} else {
				this.ismore = true;
			}
		},

		/*关闭弹窗*/
		closePopup(e, cartTotalNum) {
			this.isPopup = false;
			if (e && e.specAttr) {
				this.alreadyChioce = "";
				let has = this.$t('plus.selected');
				let noone = "";
				e.specAttr.forEach((item) => {
					if (item.specItems) {
						let h = "";
						for (let i = 0; i < item.specItems.length; i++) {
							let child = item.specItems[i];
							if (child.checked) {
								h = child.specValue + " / ";
								break;
							}
						}
						if (h != "") {
							has += h;
						} else {
							noone += item.groupName;
						}
					}
				});
				if (noone != "") {
					this.alreadyChioce = noone;
				} else {
					has = has.replace(/(\s\/\s)$/gi, "");
					this.alreadyChioce = has;
				}
			}
			if (cartTotalNum) {
				this.cartTotalNum = cartTotalNum;
			}
		},

		/*打开客服*/
		openMaservice() {
			if (!this.getUserId()) {
				this.doLogin();
				return;
			}
			if (
				this.serviceType == 10 ||
				this.detail.userId == uni.getStorageInfoSync("userId")
			) {
				this.isMpservice = true;
			} else if (this.serviceType == 20) {
				if (this.serviceUser && this.serviceUser.serviceUserId == 0) {
					uni.showToast({
						title: this.$t('plus.no_customer_service'),
						icon: "none", //如果要纯文本，不要icon，将值设为'none'
						duration: 2000, //持续时间为 2秒
					});
				} else {
					this.gotoPage(
						"/pages/plus/chat/chat?userId=" +
						this.serviceUser.serviceUserId +
						"&shopSupplierId=" +
						this.serviceUser.shopSupplierId +
						"&nickName=" +
						this.serviceUser.nickName
					);
				}
			}
		},

		/*关闭客服*/
		closeMpservice() {
			this.isMpservice = false;
		},

		/*跳转商品详情页面*/
		gotoProducntDetail() {
			let url =
				"/pages/product/detail/detail?productId=" + this.detail.productId;
			this.gotoPage(url);
		},

		/*打开关闭更多*/
		openMoreFunc(e) {
			this.ismore = e;
		},

		/*去拼团*/
		gobillFunc(e) {
			this.ismore = false;
			for (let i = 0; i < e.billUser.length; i++) {
				let user = e.billUser[i];
				if (this.userId === user.userId) {
					let url =
						"/pages/plus/assemble/fight-group-detail/fight-group-detail?assembleBillId=" +
						e.assembleBillId;
					this.gotoPage(url);
					return;
				}
			}
			this.assembleBillId = e.assembleBillId;
			this.openPopup();
		},

		/*倒计时返回值*/
		returnValFunc(e) { },
		/*分享*/
		onShareAppMessage() {
			let self = this;
			// 构建页面参数
			let params = self.getShareUrlParams({
				assembleProductId: self.assembleProductId,
			});
			return {
				title: self.detail.productName,
				path: "/pages/plus/assemble/detail/detail?" + params,
			};
		},
		//分享按钮
		showShare() {
			let self = this;
			//#ifdef MP-WEIXIN
			return;
			//#endif
			//#ifndef APP-PLUS
			self.isMpShare = true;
			//#endif
			//#ifdef APP-PLUS
			self.appParams.title = self.detail.product.product_name;
			self.appParams.summary = self.detail.product.product_name;
			// 构建页面参数
			let params = self.getShareUrlParams({
				assemble_product_id: self.assemble_product_id,
			});
			self.appParams.path = "/pages/plus/assemble/detail/detail?" + params;
			self.appParams.image = self.detail.product.image[0].file_path;
			self.isAppShare = true;
			//#endif
		},
		//关闭分享
		closeBottmpanel(data) {
			this.isMpShare = false;
		},
		//关闭分享
		closeAppShare(data) {
			this.isAppShare = false;
		},
	},
	destroyed() { },
};
</script>

<style lang="scss">
.product-detail {
	padding-bottom: 90rpx;
}

.product-detail .product-pic,
.product-detail .product-pic .swiper,
.product-detail .product-pic image {
	width: 750rpx;
	height: 750rpx;
}

.product-detail .price-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16rpx;
}

.product-detail .price-wrap .left {
	display: flex;
	justify-content: flex-start;
	align-items: flex-end;
}

.product-detail .price-wrap .new-price {
	color: $dominant-color;
	font-size: 30rpx;
	font-weight: bold;
}

.product-detail .price-wrap .new-price .num {
	padding: 0 4rpx;
	font-size: 40rpx;
}

.product-detail .price-wrap .old-price {
	margin-left: 10rpx;
	font-size: 24rpx;
	color: #999999;
	text-decoration: line-through;
}

.product-detail .already-sale {
	font-size: 26rpx;
	color: #999999;
}

.product-detail .product-name {
	padding-top: 26rpx;
	font-size: 32rpx;
	font-weight: bold;
	color: #333333;
}

.product-detail .product-describe {
	padding: 18rpx;
	line-height: 40rpx;
	font-size: 26rpx;
	color: #666666;
	background-color: #f2f2f2;
	border-radius: 12rpx;
	word-break: break-all;
	margin-top: 28rpx;
}

.product-comment,
.product-content {
	margin-top: 20rpx;
	background: #ffffff;
}

.product-content .content-box p image {
	width: 100%;
}

.product-content .content-box {
	font-size: 36rpx;
}

.btns-wrap {
	position: fixed;
	height: 100rpx;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	background: #ffffff;
}

.btns-wrap .icon-box {
	width: 90rpx;
	height: 100rpx;
}

.btns-wrap .icon-box .iconfont {
	font-size: 40rpx;
	color: #888888;
}

.btns-wrap .customer-service button {
	height: 80rpx;
	line-height: 80rpx;
}

.btns-wrap button,
.btns-wrap button:after {
	padding: 0;
	margin: 0;
	height: 30rpx;
	line-height: 30rpx;
	margin: 0;
	padding: 0;
	flex: 1;
	border-radius: 0;
	border: 0;
}

.btns-wrap .buy-alone button,
.btns-wrap .make-group button {
	font-size: 26rpx;
	background: none;
}

.btns-wrap .buy-alone,
.btns-wrap .buy-alone button {
	width: 220rpx;
	height: 80rpx;
	border-top-left-radius: 40rpx;
	border-bottom-left-radius: 40rpx;
	margin-left: 10rpx;
}

.btns-wrap .buy-alone {
	background: linear-gradient(270deg, #e48441 0%, #eaa84e 100%);
}

.btns-wrap .buy-alone text,
.btns-wrap .make-group text {
	color: #ffffff;
	font-size: 32rpx;
}

.btns-wrap .make-group,
.btns-wrap .make-group button {
	width: 220rpx;
	height: 80rpx;
	border-top-right-radius: 40rpx;
	border-bottom-right-radius: 40rpx;
	margin-right: 10rpx;
}

.btns-wrap .make-group {
	background: linear-gradient(270deg, #d42716 0%, #dd4746 100%);
}

.share-box {
	position: absolute;
	width: 60rpx;
	height: 60rpx;
	right: 0;
	bottom: -16rpx;
	display: flex;
	justify-content: center;
	align-items: center;
}

.share-box button {
	padding: 0;
	background: 0;
	line-height: 60rpx;
	border-radius: 0;
}

.share-box .iconfont {
	margin-bottom: 10rpx;
	font-size: 50rpx;
	color: #ffffff;
}

.share_img {
	width: 30rpx;
	height: 30rpx;
	margin: 0 auto;
	margin-bottom: 4rpx;
}

.share_text {
	line-height: 34rpx;
}

.create-img {
	width: 100%;
	padding: 20rpx;
	box-sizing: border-box;
}

.create-img image {
	width: 100%;
}

.create-img button {
	width: 100%;
}

.product-detail .limited-spike {
	padding: 0 35rpx;
	height: 90rpx;
	color: #ffffff;
	border-radius: 12rpx 12rpx 0 0;
	background: linear-gradient(-90deg, #ff3c3c 0%, #ff6e35 98%);
	// background: linear-gradient(to bottom, #ff6c65, #e2231a);
}

.product-detail .limited-spike .left-name {
	font-size: 32rpx;
	color: #ffffff;
}

.product-detail .limited-spike .right::v-deep text {
	color: #ffffff;
	font-size: 28rpx;
}

.product-detail .limited-spike .right::v-deep .box {
	height: 40rpx;
	padding: 4rpx;
	border-radius: 12rpx;
	line-height: 40rpx;
	text-align: center;
	background: #ffffff;
	color: #ff0001;
	font-size: 28rpx;
	padding: 6rpx 8rpx;
}

.product-detail .limited-spike .right::v-deep>text {
	margin-left: 10rpx;
}

.already-choice {
	background: #ffffff;
}

.already-choice .center-content {
	line-height: 90rpx;
}

.shop_head_info {
	margin: 20rpx;
	padding: 30rpx;
	box-sizing: border-box;
	background-color: white;
	border-radius: 12rpx;
}

.shop_list_body_item_shop {
	width: 100%;
	height: 120rpx;
	display: flex;
	justify-content: space-between;
}

.shop_list_body_item_shop_logo {
	width: 120rpx;
	height: 120rpx;
}

.shop_list_body_item_shop_logo image {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 12rpx;
}

.shop_list_body_item_shop_info {
	box-sizing: border-box;
	margin-left: 20rpx;
	padding-top: 0;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}

.shop-tobtn {
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	text-align: right;
	padding-top: 0;
}

.shop-tobtn button {
	width: 160rpx;
	height: 60rpx;
	border-radius: 30rpx;
	line-height: 60rpx;
	font-size: 26rpx;
	font-family: PingFang SC;
	font-weight: 500;
	border: 1rpx solid;
	text-align: center;
	padding: 0;
}

.shop_list_body_item_shop_others {
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	text-align: right;
	padding-top: 0;
}

.shop_list_body_item_shop_others button {
	width: 160rpx;
	height: 60rpx;
	border: 1rpx solid #f6220c;
	border-radius: 30rpx;
	line-height: 60rpx;
	font-size: 26rpx;
	font-family: PingFang SC;
	font-weight: 500;
	color: #f6220c;
	text-align: center;
	padding: 0;
	background-color: #ffffff;
}

.btnname {
	position: absolute;
	bottom: -14px;
	left: 0;
	right: 0;
	font-size: 22rpx;
	color: #333333;
}

.bottom-radius {
	border-bottom-left-radius: 12rpx;
	border-bottom-right-radius: 12rpx;
}

.pro_nameline {
	width: 4rpx;
	height: 24rpx;
	background-color: #f6220c;
	margin-right: 12rpx;
}
</style>